package py.com.fms.com.bean;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Collection;
import java.util.Date;


import py.com.fms.fms.bean.BranchBean;
import py.com.fms.fms.bean.CurrencyBean;
import py.com.fms.fms.bean.RefDetBean;
import py.com.fms.fms.bean.SupplierBean;
import py.com.fms.fms.bean.VoucherBean;


public class PurchasesHeadBean implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -8618548587108659679L;
	
	private Long id;
	private Long idEnt;
	private Long idBranch;
	private Long idTypeTrans;  // ej: compra, nota de credito

	private String stamping;
	private String establishment;
	private String expedition;
	private String voucher;
	private Long idSupplier;
	private Date voucherDate;
	private Date startDate;
	private Date statusDate;
	private Long idTransRef; // en caso de pedido, id del registro
	private Long idTypeTransRef; // ej: pedido, compra
	private Long buyType;
	private Long currency;
	private Double changeType;
	private Long costCenter;
	private Long buyCondition;
	private BigDecimal total;
	private BigDecimal taxTotal;
	private BigDecimal gravTotal;
	private BigDecimal exemptTotal;
	private BigDecimal discount;
	private BigDecimal charge;
	private String ref;
	private String status;
	private BuyConditionBean buyConditionData;
	private RefDetBean buyTypeData;
	private RefDetBean costCenterData;
	private SupplierBean supplierData;
	private CurrencyBean currencyData;
	private OrderHeadBean orderHeadData;
	private OrderDetBean orderDetData;
	private BranchBean branchData;
	private VoucherBean voucherData; // Tipo de Comprobante
	private Long cancellationReason;
	private RefDetBean cancellationReasonData;
	private Boolean selected;
	
	
	public boolean equals(Object obj) {
		if (!(obj instanceof PurchasesHeadBean)) {
		return false;
		}
		PurchasesHeadBean bean = (PurchasesHeadBean) obj;
		System.out.println("EQUALSSSSSSSS bean:" + bean);
		System.out.println("EQUALSSSSSSSS bean.id:" + bean.id);
		System.out.println("EQUALSSSSSSSS this.id:" + this.id);
		
		return (bean.id.equals(this.id));

		}
	
	// ACCESSORS AND MUTATORS
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getIdEnt() {
		return idEnt;
	}
	public void setIdEnt(Long idEnt) {
		this.idEnt = idEnt;
	}
	public Long getIdBranch() {
		return idBranch;
	}
	public void setIdBranch(Long idBranch) {
		this.idBranch = idBranch;
	}
	public Long getIdTypeTrans() {
		return idTypeTrans;
	}
	public void setIdTypeTrans(Long idTypeTrans) {
		this.idTypeTrans = idTypeTrans;
	}
	public String getStamping() {
		return stamping;
	}
	public void setStamping(String stamping) {
		this.stamping = stamping;
	}
	public String getEstablishment() {
		return establishment;
	}
	public void setEstablishment(String establishment) {
		this.establishment = establishment;
	}
	public String getExpedition() {
		return expedition;
	}
	public void setExpedition(String expedition) {
		this.expedition = expedition;
	}
	public String getVoucher() {
		return voucher;
	}
	public void setVoucher(String voucher) {
		this.voucher = voucher;
	}
	public Long getIdSupplier() {
		return idSupplier;
	}
	public void setIdSupplier(Long idSupplier) {
		this.idSupplier = idSupplier;
	}
	public Date getVoucherDate() {
		return voucherDate;
	}
	public void setVoucherDate(Date voucherDate) {
		this.voucherDate = voucherDate;
	}
	public Date getStartDate() {
		return startDate;
	}
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	public Date getStatusDate() {
		return statusDate;
	}
	public void setStatusDate(Date statusDate) {
		this.statusDate = statusDate;
	}
	public Long getIdTransRef() {
		return idTransRef;
	}
	public void setIdTransRef(Long idTransRef) {
		this.idTransRef = idTransRef;
	}
	public Long getIdTypeTransRef() {
		return idTypeTransRef;
	}
	public void setIdTypeTransRef(Long idTypeTransRef) {
		this.idTypeTransRef = idTypeTransRef;
	}
	public Long getBuyType() {
		return buyType;
	}
	public void setBuyType(Long buyType) {
		this.buyType = buyType;
	}
	public Long getCurrency() {
		return currency;
	}
	public void setCurrency(Long currency) {
		this.currency = currency;
	}
	public Double getChangeType() {
		return changeType;
	}
	public void setChangeType(Double changeType) {
		this.changeType = changeType;
	}

	public Long getCostCenter() {
		return costCenter;
	}
	public void setCostCenter(Long costCenter) {
		this.costCenter = costCenter;
	}
	public Long getBuyCondition() {
		return buyCondition;
	}
	public void setBuyCondition(Long buyCondition) {
		this.buyCondition = buyCondition;
	}
	public BigDecimal getTotal() {
		return total;
	}
	public void setTotal(BigDecimal total) {
		this.total = total;
	}
	public BigDecimal getTaxTotal() {
		return taxTotal;
	}
	public void setTaxTotal(BigDecimal taxTotal) {
		this.taxTotal = taxTotal;
	}
	public BigDecimal getGravTotal() {
		return gravTotal;
	}
	public void setGravTotal(BigDecimal gravTotal) {
		this.gravTotal = gravTotal;
	}
	public BigDecimal getExemptTotal() {
		return exemptTotal;
	}
	public void setExemptTotal(BigDecimal exemptTotal) {
		this.exemptTotal = exemptTotal;
	}
	public BigDecimal getDiscount() {
		return discount;
	}
	public void setDiscount(BigDecimal discount) {
		this.discount = discount;
	}
	public BigDecimal getCharge() {
		return charge;
	}
	public void setCharge(BigDecimal charge) {
		this.charge = charge;
	}
	public String getRef() {
		return ref;
	}
	public void setRef(String ref) {
		this.ref = ref;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public BuyConditionBean getBuyConditionData() {
		return buyConditionData;
	}
	public void setBuyConditionData(BuyConditionBean buyConditionData) {
		this.buyConditionData = buyConditionData;
	}
	public RefDetBean getBuyTypeData() {
		return buyTypeData;
	}
	public void setBuyTypeData(RefDetBean buyTypeData) {
		this.buyTypeData = buyTypeData;
	}
	public RefDetBean getCostCenterData() {
		return costCenterData;
	}
	public void setCostCenterData(RefDetBean costCenterData) {
		this.costCenterData = costCenterData;
	}
	public SupplierBean getSupplierData() {
		return supplierData;
	}
	public void setSupplierData(SupplierBean supplierData) {
		this.supplierData = supplierData;
	}
	public CurrencyBean getCurrencyData() {
		return currencyData;
	}
	public void setCurrencyData(CurrencyBean currencyData) {
		this.currencyData = currencyData;
	}
	public OrderHeadBean getOrderHeadData() {
		return orderHeadData;
	}
	public void setOrderHeadData(OrderHeadBean orderHeadData) {
		this.orderHeadData = orderHeadData;
	}
	public OrderDetBean getOrderDetData() {
		return orderDetData;
	}
	public void setOrderDetData(OrderDetBean orderDetData) {
		this.orderDetData = orderDetData;
	}
	public void setBranchData(BranchBean branchData) {
		this.branchData = branchData;
	}
	public BranchBean getBranchData() {
		return branchData;
	}
	public void setVoucherData(VoucherBean voucherData) {
		this.voucherData = voucherData;
	}
	public VoucherBean getVoucherData() {
		return voucherData;
	}
	public void setSelected(Boolean selected) {
		this.selected = selected;
	}
	public Boolean getSelected() {
		return selected;
	}
	public void setCancellationReason(Long cancellationReason) {
		this.cancellationReason = cancellationReason;
	}
	public Long getCancellationReason() {
		return cancellationReason;
	}

	public void setCancellationReasonData(RefDetBean cancellationReasonData) {
		this.cancellationReasonData = cancellationReasonData;
	}

	public RefDetBean getCancellationReasonData() {
		return cancellationReasonData;
	}

	
	
}
